<template>
    <header class="header">
        <div class="container">
            <div class="logo">
                <router-link to="/">TravelEase</router-link>
            </div>
            <nav class="nav">
                <router-link to="/">首页</router-link>
                <router-link to="/destinations">目的地</router-link>
                <router-link to="/about">关于我们</router-link>
                <router-link to="/contact">联系我们</router-link>
            </nav>
            <div class="auth-buttons">
                <button class="btn btn-outline">登录</button>
                <button class="btn btn-primary">注册</button>
            </div>
        </div>
    </header>
</template>

<script>
    export default {
        name: 'MyHeader'
    }
</script>

<style scoped>
    .header {
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .logo a {
        font-size: 1.5rem;
        font-weight: 700;
        color: #2d3436;
        text-decoration: none;
    }

    .nav a {
        margin: 0 15px;
        color: #636e72;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

    .nav a:hover,
    .nav a.router-link-exact-active {
        color: #0984e3;
    }

    .btn {
        padding: 8px 16px;
        border-radius: 4px;
        font-weight: 500;
        cursor: pointer;
        margin-left: 10px;
    }

    .btn-outline {
        background: transparent;
        border: 1px solid #0984e3;
        color: #0984e3;
    }

    .btn-primary {
        background: #0984e3;
        border: 1px solid #0984e3;
        color: white;
    }
</style>